<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>132-再做w3导航条</title>
    <link rel="stylesheet" href="./css/reset.css" />
    <style>
      .nav {
        width: 1210px;
        height: 48px;
        /* 上下居中 */
        line-height: 48px;
        margin: 50px auto; /*上下50px，左右居中*/
        background-color: #e8e7e3;
        /* 设置为弹性容器 */
        display: flex;
      }

      .nav li {
        /* 设置增长系统 */
        flex-grow: 1;
      }

      .nav a {
        display: block;
        color: #808080;
        text-decoration: none;
        font-size: 16px;
        text-align: center;
      }

      .nav a:hover {
        background-color: #636363;
        color: #fff;
      }
    </style>
  </head>
  <body>
    <ul class="nav">
      <li><a href="#">HTML/CSS</a></li>
      <li><a href="#">Browser Side</a></li>
      <li><a href="#">Server Side</a></li>
      <li><a href="#">Programming</a></li>
      <li><a href="#">XML</a></li>
      <li><a href="#">Web Building</a></li>
      <li><a href="#">Reference</a></li>
    </ul>
  </body>
</html>
